import Layout from '@/layout/default.vue'
import { SnippetsOutlined } from '@ant-design/icons-vue'

export default [
    {
        path: '/order_management',
        name: 'OrderManagement',
        redirect: '/order_management/order',
        component: Layout,
        meta: {
            navTitle: '订单管理',
            order: 3,
            isSidebar: true,
            icon: () => h(SnippetsOutlined)
        },
        children: [
            {
                path: '/order_management/order',
                meta: {
                    title: '订单列表',
                    order: 301
                },
                component: () => import('@/view/orderManagement/order.vue')
            },
            {
                path: '/order_management/capitalDirection',
                meta: {
                    title: '资金走向',
                    order: 302
                },
                component: () => import('@/view/orderManagement/capitalDirection.vue')
            },
            {
                path: '/order_management/cancelOrderConfiguration',
                meta: {
                    title: '取消订单配置',
                    order: 303
                },
                component: () => import('@/view/orderManagement/cancelOrderConfiguration.vue')
            },
            {
                path: '/order_management/tipOptionConfiguration',
                meta: {
                    title: '小费选项配置',
                    order: 304
                },
                component: () => import('@/view/orderManagement/tipOptionConfiguration.vue')
            }
        ]

    }
]